package cn.endeavour.order.service;


import cn.endeavour.basic.service.IBaseService;
import cn.endeavour.basic.util.PageList;
import cn.endeavour.order.domain.AdoptOrder;
import cn.endeavour.order.query.AdoptOrderQuery;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 领养订单业务层
 */
public interface IAdoptOrderService extends IBaseService<AdoptOrder> {

    /**
     *提交订单
     * @param params
     * @param request
     * @return
     */
    String adoptOrderSubmit(Map<String, Object> params, HttpServletRequest request);

    /**
     * 后端用户查询订单
     * @param adoptOrderQuery
     * @param request
     * @return
     */
    PageList<AdoptOrder> queryAdminOrder(AdoptOrderQuery adoptOrderQuery, HttpServletRequest request);

    /**
     * 前台用户查询订单
     * @param adoptOrderQuery
     * @param request
     * @return
     */
    PageList<AdoptOrder> queryUserOrder(AdoptOrderQuery adoptOrderQuery, HttpServletRequest request);

    /**
     * 取消订单
     * @param orderId
     */
    void cancel(Long orderId);
}
